"use strict";

exports.__esModule = true;
exports.default = void 0;
var _ariaMenuitem = _interopRequireDefault(require("./aria-menuitem"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
var Menu = function Menu(domNode) {
  this.domNode = domNode;
  this.init();
};
Menu.prototype.init = function () {
  var menuChildren = this.domNode.childNodes;
  [].filter.call(menuChildren, function (child) {
    return child.nodeType === 1;
  }).forEach(function (child) {
    new _ariaMenuitem.default(child); // eslint-disable-line
  });
};
var _default = exports.default = Menu;